package com.lipl.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lipl.entity.User;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

public interface UserDAO extends BaseMapper<User> {

    @Override
    @DS("slave")
    User selectById(Serializable id);

    @DS("slave")
    void insertBatch(List<User> userList);

}
